package net.sea.setup.config;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * 向导配置
 *
 * @author 华成伍
 *
 */
@XmlRootElement(name = "wizard")
@XmlAccessorType(XmlAccessType.NONE)
public class Wizard {
	@XmlAttribute
	private String sysTitle;
	@XmlAttribute
	private String sysLogo;
	@XmlAttribute
	private String menuTitle;
	@XmlAttribute
	private String menuLogo;
	private List<Page> pages;

	public String getSysTitle() {
		return sysTitle;
	}

	public void setSysTitle(String sysTitle) {
		this.sysTitle = sysTitle;
	}

	public String getSysLogo() {
		return sysLogo;
	}

	public void setSysLogo(String sysLogo) {
		this.sysLogo = sysLogo;
	}

	public String getMenuTitle() {
		return menuTitle;
	}

	public void setMenuTitle(String menuTitle) {
		this.menuTitle = menuTitle;
	}

	public String getMenuLogo() {
		return menuLogo;
	}

	public void setMenuLogo(String menuLogo) {
		this.menuLogo = menuLogo;
	}

	@XmlElementWrapper(name = "pages")
	@XmlElement(name = "page")
	public List<Page> getPages() {
		return pages;
	}

	public void setPages(List<Page> pages) {
		this.pages = pages;
	}

	@Override
	public String toString() {
		return "Wizard [sysTitle=" + sysTitle + ", sysLogo=" + sysLogo
				+ ", menuTitle=" + menuTitle + ", menuLogo=" + menuLogo
				+ ", pages=" + pages + "]";
	}
}
